tcp packet overflow

C

chris Struhar

I have to transmit an icon across the internet from a client to a
server which handles connections from many different clients and just
continuously loops through receiving data from the buffer. the icon is
too big to fit in one tcp packet. what would be the easiest way to get
this to work?

thanks for any help.
 
E

emerth

I have to transmit an icon across the internet from a client to a
server which handles connections from many different clients and just
continuously loops through receiving data from the buffer. the icon is
too big to fit in one tcp packet. what would be the easiest way to get
this to work?

thanks for any help.

C functions send() and recv().

They don't deal in packets, they deal at a rather higher level
with streams. Search for BSD Sockets, Windows Sockets (winsock
or winsock2).

Books:
(1) UNIX Network Programming, Stevens - covers all the bases
and moves over to Windows fairly easily if that's where you live.
(2) MSDN (for Windows)
 
M

Mohamed Ghouse

To transmit data from an Application Program, normally you are not concerned
about framing of packets.

Use existing system calls or library functions & forget the framing of
packets. eg: the BSD's socket interface.
The very popular socket() call & then the read/write calls to receive &
transmit.

You have to state the Platform(OS & Programming Language) on which you are
currently involved.

-Ghouse
 
K

Kevin Goodsell

Mohamed Ghouse wrote:

Please stop top-posting.

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.4
To transmit data from an Application Program, normally you are not concerned
about framing of packets.

Use existing system calls or library functions & forget the framing of
packets. eg: the BSD's socket interface.
The very popular socket() call & then the read/write calls to receive &
transmit.

None of this is standard C++, therefore it is off-topic here.

http://www.slack.net/~shiva/welcome.txt
http://www.slack.net/~shiva/offtopic.txt
You have to state the Platform(OS & Programming Language) on which you are
currently involved.

Standard solutions do not rely on a particular platform, and
non-standard solutions do not belong here.

-Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top