Posts tagged IO

One to One Chat using sockets

0

Moving from the article Hello TCP sockets

We want to make a continuous one-to-one chat between two nodes
the two nodes at the beginning would be client and server
after connection establishment they should act similar as two nodes
(more…)

Hello TCP sockets

0

A socket is a software endpoint that establishes bidirectional communication between a server program and one or more client programs.
It has two types UDP and TCP

  • UDP
    It’s a connectionless protocol.
    It doesn’t required initializing a connection before doing communication.
    there is no guarantee that the datagrams you have sent will be received in the same order by the receiving socket. You can’t know also if it’s received without defects or if it reached its destination
  • TCP
    It’s a connection-oriented protocol.
    a connection must first be established between the pair of sockets. While one of the sockets listens for a connection request (server), the other asks for a connection (client).
    It is guaranteed that the packets you send will be received in the order in which they were sent.

(more…)

csv

Parsing CSV file in J2ME

0
csv

csv

the CSV file is asimple lightweight replicant of the database
it can hold table information and it can be processed easily through java

example of our data table or database

Egypt      Cairo       Africa
France     Paris       Europe
England    London    Europe
Iraq         Baghdad  Asia

(more…)

Go to Top