🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2044

Ethernet -- -- -- -- > How to start ?

#2044
From: Ori
Date: Mon, 28 Aug 2006 07:59
31 lines
2062 bytes
Hi all, I need to write a simple application that send a message
through Ethernet and get response, I have no idea how to start 
this, I only know how to communicate using Rs-232, my computer
is connected to a local network, can I use this connection for
my Ethernet tests? what should I install? where can I find a 
clear example that shows me how to init the Ethernet, how to send
and how to recieve?

I got some good links from Bob Gonder (Thanks!) and they includ
a source codes for the server - 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/complete_server_code.asp

and for the client - 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/complete_client_code.asp

but I don't know how to make them work, I copied them to a new
builder project (Builder 4.0, on Windows-2000 PC) and I get lot 
of errors, for example it don't know 'AI_PASSIVE', and it can't 
find the getaddrinfo() function, and lot of other errors, how do 
I make this code working?

I want to run the server code on one computer and the client code
on another computer and to see them talking with each other 
through the local network, can you please help me to complete 
this?

Thanks,
Ori.
Technical Details
Message-ID: <44f2a254$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fe1fd6d71370df56,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ori" <Ori@homepage.com>
Sender: "Ori" <Ori@homepage.com>
Reply-To: "Ori" <Ori@homepage.com>
Subject: Ethernet  --  --  --  -- >  How to start ?
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 62.0.27.159     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44f2a254$1@newsgroups.borland.com>
Date: 28 Aug 2006 00:59:16 -0700
X-Trace: newsgroups.borland.com 1156751956 207.105.83.66 (28 Aug 2006 00:59:16 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail