🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15021

How do you transfer a file via Socket?

#15021
From: Mica Cooper
Date: Mon, 12 Jul 1999 00:00
16 lines
878 bytes
Hi,

I have a ServerSocket open to recieve a file:

    ServerSocket serversocket = new ServerSocket(5550);
    incoming = serversocket.accept();

And a client socket to send:

    clientsocket = new Socket("mymachine",5550);

Now I want to open a file on the client myclient.buf and send it to the
server and save as myserver.buf. Does anyone know how to do this?

Thanks,
Mica Cooper
Technical Details
Message-ID: <7mdj2t$rpf11@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c40e16901c9be4ea,start
X-Google-Attributes: gidf74b3,public
From: "Mica Cooper" <micac@datatrade.com.removethis>
Subject: How do you transfer a file via Socket?
Date: 1999/07/12
Message-ID: <7mdj2t$rpf11@forums.borland.com>
X-Deja-AN: 500238311
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language