473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to remove a socket

I have created a socket and now unable to remove or reuse it. the
client/server socket program executed only once and then never.
please guide me as soon as possible.

Nov 11 '06 #1
5 2541
"mayuri" <ma*******@gmail.comwrites:
I have created a socket and now unable to remove or reuse it. the
client/server socket program executed only once and then never.
please guide me as soon as possible.
Standard C doesn't support sockets. Ask in a newsgroup that deals
with your platform (comp.unix.programmer, perhaps?).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 11 '06 #2
we are doing socket programming in C in Linux...we are getting error
'Connection refused' for client.
what to do then?

On Nov 11, 12:17 pm, Keith Thompson <k...@mib.orgwrote:
"mayuri" <mayuri...@gmail.comwrites:
I have created a socket and now unable to remove or reuse it. the
client/server socket program executed only once and then never.
please guide me as soon as possible.Standard C doesn't support sockets. Ask in a newsgroup that deals
with your platform (comp.unix.programmer, perhaps?).

--
Keith Thompson (The_Other_Keith) k...@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 11 '06 #3
"mayuri" <ma*******@gmail.comwrites:
On Nov 11, 12:17 pm, Keith Thompson <k...@mib.orgwrote:
>"mayuri" <mayuri...@gmail.comwrites:
I have created a socket and now unable to remove or reuse it. the
client/server socket program executed only once and then never.
please guide me as soon as possible.

Standard C doesn't support sockets. Ask in a newsgroup that deals
with your platform (comp.unix.programmer, perhaps?).

we are doing socket programming in C in Linux...we are getting error
'Connection refused' for client.
what to do then?
Top-posting corrected.

First, read the following links:

http://www.caliburn.nl/topposting.html
http://www.cpax.org.uk/prg/writings/topposting.php

Second, *pay attention*. I just told you to try a different
newsgroup. Linux is sufficiently Unix-like that comp.unix.programmer
should be a good place to ask.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 11 '06 #4
mayuri wrote:
On Nov 11, 12:17 pm, Keith Thompson <k...@mib.orgwrote:
"mayuri" <mayuri...@gmail.comwrites:
I have created a socket and now unable to remove or reuse it. the
client/server socket program executed only once and then never.
please guide me as soon as possible.Standard C doesn't support sockets.
Ask in a newsgroup that deals with your platform (comp.unix.programmer,
perhaps?).

we are doing socket programming in C in Linux...we are getting error
'Connection refused' for client.
what to do then?
this news group discusses standard C, as defined by the ISO standard.
Sockets are not part of standard C, hence your post is off-topic.
--
Nick Keighley

Nov 13 '06 #5

mayuri wrote:
I have created a socket and now unable to remove or reuse it. the
client/server socket program executed only once and then never.
please guide me as soon as possible.
Reboot your system.

Or...

Read up on socket handling on your platform (which is nothing to do
with the C language itself).
If in doubt, you could start with one of W Richard Stevens' books on
Network programming.

Or...

Ask in a newsgroup relevant to your platform.

Nov 13 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: simon place | last post by:
Spent some very frustrating hours recoding to find a way of closing a server socket, i'd not thought it would be any problem, however, after complete failure and as a last resort, i looked at the...
3
by: TJO | last post by:
Can someone recomend a good technique for removing BOF and EOF markers from a byte? I am passing a byte thru an FTP socket. I am serializing an object into a byte and then adding an EOF marker...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
0
by: Macca | last post by:
Hi, I am writing an asychronous socket server to handle 20+ simulataneous connections. I have used the example in MSDN as a base. The code is shown at end of question. Each connection has a...
3
by: BuddyWork | last post by:
Hello, Could someone please explain why the Socket.Send is slow to send to the same process it sending from. Eg. Process1 calls Socket.Send which sends to the same IP address and port, the...
4
by: Index | last post by:
Hi, I am trying to compare a char* with an unsigned char*.I have type cast the later to char*.Now the problem is, the unsigned char* is populated with recv() function over the socket and sometimes...
2
by: ppuniversal | last post by:
hello, my program snippet: /*****************************/ /******runThread Function*****/ /*to accept other client connections*/ /*****************************/ DWORD WINAPI...
5
by: darthghandi | last post by:
I've created a class to listen to all interfaces and do a BeginAccept(). Once it gets a connection, it passes the connected socket off and stores it in a List. Next, it continues to listen for...
11
by: Richard Maher | last post by:
Hi, I have read many of the copius entries on the subject of IE performance (or the lack thereof) when populating Select Lists. I don't mind the insert performance so much, (I get 100x120byte...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.