资源简介

SocketCoder语音/视频会议模块源码 源码描述: 免费(SocketCoder)Silverlight语音/视频会议模块项目 这个项目的目标是提供完整的开源(语音/视频聊天客户机/服务器)模块使用Silverlight技术,该项目分为三个主要模块如下: 1 -客户机/服务器语音聊天模块(Speex和G.711)one-multi和全双工一对一的 2 -客户机/服务器模块,视频聊天one-multi和全双工一对一的 3 -客户机/服务器桌面主持人/桌面共享模块,one-multi

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.Threading;

namespace SocketCoderPresenter
{
    public partial class PresenterTool : Form
    {

        const int wToCompare = 100;
        const int hToCompare = 100;

        const int wToSend = 640;
        const int hToSend = 480;

        Socket SenderSocket;
        ScreenCapture scr = new ScreenCapture();
        bool stop = true;
        Thread th;
        IPEndPoint ipend;

        public PresenterTool()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;
            SenderSocket = new Socket(AddressFamily.InterNetwork SocketType.Stream ProtocolType.Tcp);
            
        }

        private void showToolStripMenuItem_Click(object sender EventArgs e)
        {
            this.Show();
        }

        private void hideToolStripMenuItem1_Click(object sender EventArgs e)
        {
            this.Hide();
        }

        private void exitToolStripMenuItem1_Click(object sender EventArgs e)
        {
            this.Close();
        }

        private void ConnectBTN_Click(object sender EventArgs e)
        {
            if (!SenderSocket.Connected)
                try
                {
                    SenderSocket = new Socket(AddressFamily.InterNetwork SocketType.Stream ProtocolType.Tcp);
                    ipend = new IPEndPoint(IPAddress.Parse(ServerIP.Text) 4532);
                    SenderSocket.Connect(ipend);

                    sendingSt.ForeColor = Color.Blue;
                    sendingSt.Text = “Connected“;

                    StartBTN.Enabled = SenderSocket.Connected;
                    ConnectBTN.Text = “Disconnect“;
                    ServerIP.Enabled = false;

                }
                catch (Exception ex) { MessageBox.Show(ex.Message); }

            else
            {
                if (th != null)
                {
                    stop = true;
                    th.Abort();
                }

                SenderSocket.Close();

               
                ConnectBTN.Text = “Connect“;
                sendingSt.ForeColor = Color.Red;
                sendingSt.Text = “Disconnected“;
                differencelab.Text = “0“;
                ImageToSend.Image = null;
                StartBTN.Enabled = false;
                StopBtn.Enabled = false;
                ServerIP.Enabled = true;
            }
        }

        private void StopBtn_Click(object sender EventArgs e)
        {
            stop = true;
            th.Abort();
            StartBTN.Enabled = true;
            StopBtn.Enabled = false;
            sendingSt.ForeColor = Color.Red;
            sendingSt.Text = “Paused“;
        }

        p

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-05-17 17:18  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\
     目录           0  2010-12-15 23:43  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\
     目录           0  2010-05-04 23:39  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\
     目录           0  2010-05-04 23:39  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\
     目录           0  2010-06-28 13:01  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\
     文件         932  2010-04-17 23:06  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool.sln
     文件       16896  2010-06-27 09:12  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool.suo
     目录           0  2010-06-27 09:09  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\bin\
     目录           0  2010-06-27 09:09  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\bin\Debug\
     文件       27136  2010-06-27 09:09  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\bin\Debug\SocketCoderPresenter.exe
     文件       34304  2010-06-27 09:09  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\bin\Debug\SocketCoderPresenter.pdb
     文件       11608  2010-06-27 09:11  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\bin\Debug\SocketCoderPresenter.vshost.exe
     文件         490  2010-03-17 22:39  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\bin\Debug\SocketCoderPresenter.vshost.exe.manifest
     文件        5024  2010-04-17 23:07  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Presenter Tool.csproj
     文件         452  2010-04-17 23:07  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Presenter Tool.csproj.user
     文件        4630  2010-05-04 09:21  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\PresenterTool.cs
     文件       11524  2010-05-04 09:21  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\PresenterTool.Designer.cs
     文件       21026  2010-05-04 09:21  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\PresenterTool.resx
     文件         500  2010-04-11 14:56  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Program.cs
     目录           0  2010-05-04 23:39  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Properties\
     文件        1470  2010-02-02 10:58  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Properties\AssemblyInfo.cs
     文件        2864  2010-04-17 23:06  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Properties\Resources.Designer.cs
     文件        5957  2010-04-15 19:00  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Properties\Resources.resx
     文件        1099  2010-04-17 23:06  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Properties\Settings.Designer.cs
     文件         249  2010-02-02 10:58  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\Properties\Settings.settings
     文件        6145  2010-02-03 08:53  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\Presenter Tool\ScreenCapture.cs
     文件       20480  2010-05-04 09:19  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Publisher\SocketCoderPresenter.suo
     目录           0  2010-05-04 23:39  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Viewer\
     目录           0  2013-12-17 10:51  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Viewer\SocketCoder_WebCamReceiver\
     文件        1512  2010-01-09 13:31  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Viewer\SocketCoder_WebCamReceiver.sln
     文件       36352  2013-12-17 10:59  SocketCoder_5fe92b65-f2e0-4944-b08a-8b644105c61b\Modules\DesktopPresenter\Desktop Viewer\SocketCoder_WebCamReceiver.suo
............此处省略544个文件信息

评论

共有 条评论