Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
AnswerRe: Parameterized Query Pin
Gerry Schmitz16-Jul-23 19:32
mveGerry Schmitz16-Jul-23 19:32 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 5:33
professionalRichard Andrew x6417-Jul-23 5:33 
QuestionGetting a VST3 effect name and vendor Pin
spice3d8-Jul-23 9:19
spice3d8-Jul-23 9:19 
AnswerRe: Getting a VST3 effect name and vendor Pin
Pete O'Hanlon8-Jul-23 10:09
mvePete O'Hanlon8-Jul-23 10:09 
GeneralRe: Getting a VST3 effect name and vendor Pin
spice3d8-Jul-23 11:18
spice3d8-Jul-23 11:18 
QuestionAdvices for my learning path Pin
coco2437-Jul-23 21:10
coco2437-Jul-23 21:10 
AnswerRe: Advices for my learning path Pin
OriginalGriff7-Jul-23 21:19
mveOriginalGriff7-Jul-23 21:19 
AnswerRe: Advices for my learning path Pin
Richard Andrew x648-Jul-23 3:26
professionalRichard Andrew x648-Jul-23 3:26 
GeneralRe: Advices for my learning path Pin
coco2439-Jul-23 9:07
coco2439-Jul-23 9:07 
GeneralRe: Advices for my learning path Pin
jschell10-Jul-23 3:50
jschell10-Jul-23 3:50 
AnswerRe: Advices for my learning path Pin
BillWoodruff9-Jul-23 15:06
professionalBillWoodruff9-Jul-23 15:06 
GeneralRe: Advices for my learning path Pin
coco24310-Jul-23 18:34
coco24310-Jul-23 18:34 
GeneralRe: Advices for my learning path Pin
BillWoodruff10-Jul-23 18:58
professionalBillWoodruff10-Jul-23 18:58 
GeneralRe: Advices for my learning path Pin
Richard MacCutchan10-Jul-23 21:55
mveRichard MacCutchan10-Jul-23 21:55 
AnswerRe: Advices for my learning path Pin
Gerry Schmitz18-Jul-23 6:03
mveGerry Schmitz18-Jul-23 6:03 
GeneralRe: Advices for my learning path Pin
coco24319-Jul-23 18:36
coco24319-Jul-23 18:36 
QuestionGoogle People API Error Pin
Kevin Marois6-Jul-23 10:54
professionalKevin Marois6-Jul-23 10:54 
AnswerRe: Google People API Error Pin
OriginalGriff6-Jul-23 18:30
mveOriginalGriff6-Jul-23 18:30 
GeneralRe: Google People API Error Pin
Kevin Marois7-Jul-23 6:26
professionalKevin Marois7-Jul-23 6:26 
GeneralRe: Google People API Error Pin
OriginalGriff7-Jul-23 6:45
mveOriginalGriff7-Jul-23 6:45 
Questionwhy the data been sent out after socket.close(), not socket.send(). Pin
viming4-Jul-23 16:06
viming4-Jul-23 16:06 
try
            {
                string message = "device=camera;item=ois;command=start;\\r\\n";
                byte[] bytes = Encoding.ASCII.GetBytes(message);
                Socket s = null;
                IPEndPoint hostEndPoint;
                IPAddress hostAddress = null;
                int conPort = 80;

                hostAddress = IPAddress.Parse("127.0.0.1");
                hostEndPoint = new IPEndPoint(hostAddress, 9103);

                // Creates the Socket to send data over a TCP connection.
                s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                s.ReceiveTimeout = 1000*15;

                // Connect to the host using its IPEndPoint.
                s.Connect(hostEndPoint);

                if (!s.Connected)
                {
                    // Connection failed, try next IPaddress.
                    Console.WriteLine("Unable to connect to host");

                }
                s.Send(bytes);
                s.Close();
            }

as my thought, the data should be sent out after sockct.send. but actually it don't work. the data been sent out after socket.close. i had been stuck by this 2 days. i had searched information using bing and google 2 days, nothing useful. it is suffering. it is appreciated for any suggestion. thanks.

[edit]
Closing <pre> tag added - OriginalGriff
[/edit]
i want to best


modified 5-Jul-23 0:10am.

AnswerRe: why the data been sent out after socket.close(), not socket.send(). Pin
OriginalGriff4-Jul-23 18:19
mveOriginalGriff4-Jul-23 18:19 
GeneralRe: why the data been sent out after socket.close(), not socket.send(). Pin
viming4-Jul-23 21:05
viming4-Jul-23 21:05 
GeneralRe: why the data been sent out after socket.close(), not socket.send(). Pin
OriginalGriff4-Jul-23 21:14
mveOriginalGriff4-Jul-23 21:14 
AnswerRe: why the data been sent out after socket.close(), not socket.send(). Pin
jschell5-Jul-23 5:26
jschell5-Jul-23 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.