Article View: borland.public.cppbuilder.nativeapi
Article #9362Re: Send API
From: Remy Lebeau (TeamB)
Date: Sun, 18 Jul 2004 20:40
Date: Sun, 18 Jul 2004 20:40
47 lines
2394 bytes
2394 bytes
"Babak" <babak_info@hot.pop> wrote in message news:40fac2e3@newsgroups.borland.com... > Hi , please tell me if there is an API fro sending > Information from My Computer To Other Computer > on the Internet. Use TCP/IP sockets for that. There is a WinSock API for that exact purpose. > The needed API maybe like these kinds, > > 1-Send a msg by Email if there is. Email is sent via various protocols (namely SMTP and IMAP4) that are built on top of TCP/IP. > 2-Send a msg by IE to a webpage if there is That is a completely different matter altogether. > 3-Send a msg by Win98 to another machine by IP maybe. That goes back to using TCP/IP sockets again. > Please dont tell me that I can use FastNet , Indy or other CVL tools , I > just want to learn API programming and have more expriences. Indy and ICS and various other libraries are open-source, so you can see how they are implementing and using TCP/IP sockets at the API level. There are also numerous WinSock tutorials and such available as well. Just search around. > AnsiString MyMsg="This Text For Example"; > MyMachineIP=217.218.219.220; > MyMachinPort=12345; > OtherMachineIP=10.20.30.40; > OtherMachinePort=54321; > SendIpToIp(MyMsg); Look at socket(), bind(), connect(), and send() in the WinSock API. Of course, the other machine needs to be running a TCP/IP server in order to accept the incoming data. Look at socket(), bind(), accept(), and recv() for that. Gambit
Technical Details
Message-ID:
<40fadfee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40fac2e3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,26b6edad7043e051 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40fac2e3@newsgroups.borland.com> Subject: Re: Send API Date: Sun, 18 Jul 2004 13:40:00 -0700 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <40fadfee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090183150 68.69.17.41 (18 Jul 2004 13:39:10 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail