Skip to content

Commit c60a270

Browse files
authored
Scrap APM samples for Socket (#8545)
1 parent a9d51e1 commit c60a270

File tree

8 files changed

+1
-1049
lines changed

8 files changed

+1
-1049
lines changed

snippets/cpp/VS_Snippets_Remoting/NCLSocketEnhancements/CPP/nclsocketenhancements.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ public ref class Test
117117

118118
static void Listen()
119119
{
120-
121-
// <snippet6>
122120
// This server waits for a connection and then uses asynchronous operations to
123121
// accept the connection with initial data sent from the client.
124122
// Establish the local endpoint for the socket.
@@ -169,12 +167,8 @@ public ref class Test
169167
state->workSocket = handler;
170168
handler->BeginReceive( state->buffer, 0, StateObject::BufferSize, static_cast<SocketFlags>(0), gcnew AsyncCallback( ReadCallback ), state );
171169
}
172-
173-
174-
// </snippet6>
175170
static void ListenWithSocket()
176171
{
177-
// <snippet7>
178172
// This server waits for a connection and then uses asynchronous operations to
179173
// accept the connection with initial data sent from the client.
180174
// Establish the local endpoint for the socket.
@@ -225,7 +219,6 @@ public ref class Test
225219
handler->BeginReceive( state->buffer, 0, StateObject::BufferSize, static_cast<SocketFlags>(0), gcnew AsyncCallback( ReadCallback ), state );
226220
}
227221

228-
// </snippet7>
229222
static void ReadCallback( IAsyncResult^ ar )
230223
{
231224
String^ content = String::Empty;
@@ -322,7 +315,6 @@ public ref class Test
322315

323316
public:
324317

325-
// <snippet9>
326318
static void AsynchronousFileSend()
327319
{
328320
// Send a file to a remote device.
@@ -363,10 +355,6 @@ public ref class Test
363355
sendDone->Set();
364356
}
365357

366-
// </snippet9>
367-
368-
369-
// <snippet10>
370358
public:
371359
static void AsynchronousFileSendWithBuffers()
372360
{
@@ -417,7 +405,6 @@ public ref class Test
417405
client->EndSendFile( ar );
418406
sendDone->Set();
419407
}
420-
// </snippet10>
421408

422409
static void ConnectCallback( IAsyncResult^ ar )
423410
{
@@ -476,7 +463,6 @@ public ref class Test
476463
public:
477464
static void ClientDisconnect()
478465
{
479-
//<snippet11>
480466
// Establish the remote endpoint for the socket.
481467
// For this example use local computer.
482468
IPHostEntry^ ipHostInfo = Dns::GetHostEntry( Dns::GetHostName() );
@@ -525,7 +511,6 @@ public ref class Test
525511

526512
public:
527513

528-
//</snippet11>
529514
static void SynchronousServer()
530515
{
531516
// Establish the local endpoint for the socket.

snippets/cpp/VS_Snippets_Remoting/Socket_Async_Send_Receive/CPP/source.cpp

-304
This file was deleted.

0 commit comments

Comments
 (0)